struct Solution {}

fn main() {}

impl Solution {
    pub fn str_str(haystack: String, needle: String) -> i32 {
        let option = haystack.find(&needle);
        if option.is_some() {
            return option.unwrap() as i32;
        }
        -1
    }
}